#!/bin/bash

IP=${LOCAL_IP}
if [ -z "${IP}" ]; then
    echo "please export LOCAL_IP=xxx.xxx.xxx.xxx"
    exit 1
fi

sudo kubeadm init \
    --pod-network-cidr=10.244.0.0/16 \
    --apiserver-advertise-address=${IP} | tee kubeadm-init.log